import request from '@/utils/request'
export const subjectlist = () => {
  return request({
    url: '/subject/list'
  })
} //获取学科列表

export const enterpriselist = () => {
  return request({
    url: '/enterprise/list'
  })
} //获取企业列表

export const questionlist = params => {
  return request({
    url: '/question/list',
    params
  })
} //获取题目列表

export const questionstatus = data => {
  return request({
    url: '/question/status',
    method: 'post',
    data
  })
} //启用/禁用题目状态

export const questionupload = data => {
  return request({
    url: '/question/upload',
    method: 'post',
    data
  })
} //上传图片

export const questionadd = data => {
  return request({
    url: '/question/add',
    method: 'POST',
    data
  })
} //发布题目

export const questionedit = data => {
  return request({
    url: '/question/edit',
    method: 'post',
    data
  })
} //编辑题目

export const questionone = data => {
  return request({
    url: '/question/one',
    method: 'post',
    data
  })
} //获取单个题目详细数据

export const questionremove = data => {
  return request({
    url: '/question/remove',
    method: 'post',
    data
  })
} //删除题目
